import request from "./request"

export const GetIndex = _ => request.get("/index/index");
export const GetSearch = _ => request.get("/search/index");
export const clear = _ => request.post("/search/clearhistory");
export const GetGoodList = params => request.get("/goods/list", { params});
export const SearchAPI = params => request.get("/search/helper",{params});
export const TopicAPI = params => request.get("/topic/list",{params});
export const CartAPI = params => request.get("/cart/index",{params});
export const Login = params => request.post("/auth/loginByWeb", params);
export const GoodCatalog = params => request.get("/goods/category",{params});
export const Catalog = _ => request.get("/catalog/index");
export const CatalogCurrent = params => request.get("/catalog/current", { params});
export const GoodDetail = params => request.get("/goods/detail", { params});
export const GoodRelated = params => request.get("/goods/related", { params});
export const GetBrandDetail = params => request.get("/brand/detail", { params});
export const GetBrandList = params => request.get("/goods/list", { params});
export const GetCartCount= _ => request.get("/cart/goodscount");
export const GetCartAdd = params => request.post("/cart/add", params);
export const CartUpdata = params => request.post("/cart/update", params);
export const CartChecked = params => request.post("/cart/checked", params);
export const delCartProduct = params => request.post("/cart/delete", params);